package com.cq.androidtools.mvp.model

import com.cq.androidtools.mvp.model.IUser

/**
 * 作者: CQ
 * 日期: 2021-03-23
 * 说明:
 */
class UserModelImpl : IUser {

    private var userName: String? = null
    private var passWord: String? = null

    constructor(user: String?, pass: String) {
        userName = user
        passWord = pass
    }

    override fun getUserName(): String {
        return userName!!
    }

    override fun getPassWord(): String {
        return passWord!!
    }

    override fun checkLogin(user: String?, pass: String): Boolean {
        return user == userName!! && pass == passWord
    }
}